package com.aspose.cells;

import java.util.ArrayList;
import java.util.List;

class zjg extends CollectionBase implements zage {
   private zbcq b;
   private zig c;

   zjg(zig var1, zbcq var2) {
      this.c = var1;
      this.b = var2;
   }

   zbcq a() {
      return this.b;
   }

   public zagd a(int var1) {
      return var1 >= 0 && var1 <= this.getCount() - 1 ? (zagd)this.a.get(var1) : null;
   }

   public zje b(int var1) {
      return var1 >= 0 && var1 <= this.getCount() - 1 ? (zje)this.a.get(var1) : null;
   }

   zig b() {
      return this.c;
   }

   private int a(zje var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      var1.a(this);
      var1.f();
      return this.a.size() - 1;
   }

   public zagd a(double var1) {
      zje var3 = new zje(this.c, var1);
      this.a(var3);
      return var3;
   }

   List c() {
      return this.a;
   }

   ArrayList d() {
      ArrayList var1 = new ArrayList();
      Object var2 = null;

      for(int var3 = 0; var3 < this.a.size(); ++var3) {
         zje var4 = this.b(var3);
         if (var3 == 0) {
            com.aspose.cells.b.a.a.ze.a(var1, (Object)var4);
         } else {
            boolean var5 = false;

            for(int var6 = 0; var6 < var1.size(); ++var6) {
               zje var7 = (zje)var1.get(var6);
               if (var7.q() > var4.q()) {
                  var1.add(var6, var4);
                  var5 = true;
                  break;
               }
            }

            if (!var5) {
               com.aspose.cells.b.a.a.ze.a(var1, (Object)var4);
            }
         }
      }

      return var1;
   }

   // $FF: synthetic method
   public Object get(int x0) {
      return this.a(x0);
   }
}
